package itbour.onetouchshow.constants;

import android.os.Bundle;

import itbour.onetouchshow.constants.platform.WorkPlatform;

/**
 * Created by Yang on 2017/12/19.
 */

public class IntentCode {

    public static Bundle getBundle(String docId, @WorkPlatform.Platform int platform) {
        Bundle bundle = new Bundle();
        bundle.putString(AppConst.DOCID, docId);
        bundle.putString(WorkPlatform.TYPE, WorkPlatform.getWorkPlatform(platform));
        return bundle;
    }

    public static Bundle getBundle(int docId, @WorkPlatform.Platform int platform) {
        Bundle bundle = new Bundle();
        bundle.putString(AppConst.DOCID, String.valueOf(docId));
        bundle.putString(WorkPlatform.TYPE, WorkPlatform.getWorkPlatform(platform));

        return bundle;
    }


    public static String getProductBundle(@WorkPlatform.Platform int platform) {
        return WorkPlatform.getWorkPlatform(platform);
    }
}
